/* ===== BODY ===== */
body {
  background-color: rgb(16, 17, 26);
  color: #f0f0f0;
  font-family: monospace;
  margin: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

body.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HEADER ===== */
header {
  text-align: center;
  background-image: url("../images/Images/BG1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-bottom: 100px;

  /* fade like SLIMO */
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

header img {
  width: 90%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: auto;
}
main {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 100px; /* pushes footer down */
}

/* OPTIONAL: extra spacing on bottom row */
.bottom-row {
  margin-bottom: 60px; /* ensures footer doesn't collide */
}

/* Footer */
footer {
  text-align: center;
  opacity: 0.6;
  font-size: 14px;
  background-color: rgb(82, 104, 104);
  padding: 30px 0; /* more padding inside footer */
  margin-top: 20px; /* ensure footer isn't stuck to content */
        -webkit-mask-image: linear-gradient(to top, black 70%, transparent 100%);
  mask-image: linear-gradient(to top, black 70%, transparent 100%);
}
.support-me {
  text-align: center;
}

.support-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 20px;
  background: #29abe0;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
}

.support-btn:hover {
  opacity: 0.85;
}
nav {
  text-align: center;
  margin-bottom: 30px;
  background-color: rgb(45, 45, 66);
  padding: 20px 0;
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

nav a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 30px;
  font-size: 30px;
  text-align: center;
  transition: color 0.3s ease, font-size 0.3s ease;
}

nav a:hover {
  color: #40c55d;
  font-size: 35px;
}

/* ===== FULL LINE ===== */
.full-line {
  width: 100vw;
  height: 5px;
  background-color: #235039;
  margin-left: calc(-50vw + 50%);
}

/* ===== TOP ROW ===== */
.top-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;         /* space between video and GIF */
  margin-bottom: 80px; /* spacing below top row */
}

.top-row iframe {
  max-width: 800px;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
}

.side-gif {
  width: 300px;
  height: auto;
}

/* ===== BOTTOM ROW ===== */
.bottom-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;          /* spacing between phone and description */
  margin-top: 60px;
  flex-wrap: wrap;     /* allow stacking on mobile */
}

/* ===== PHONE MOCKUP ===== */
.game-screen-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;           /* space between phone and buttons */
  justify-content: center;
}

.Phone {
  background-image: url("../images/Images/Phone.png"); /* keep phone background */
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 300px;
  aspect-ratio: 330 / 620;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.game-screen {
  width: 90%;
  height: 100%;
  max-height: 100%;
  background-color: black;
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.content {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* keep fade-in transition */
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

/* ===== BUTTONS ===== */
.game-screen-wrapper button {
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.3;
  width: 70px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.game-screen-wrapper button:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

.game-screen-wrapper button img {
  width: 100%;
  height: auto;
}

/* ===== DESCRIPTION ===== */
.Description {
  max-width: 400px;
  margin-top: 0;
  text-align: left;
}

.Description img {
  width: 100%;
  max-width: 400px;
}

.Description h1 {
  font-size: 18px;
  line-height: 1.5;
}

/* ===== PLAY STORE ===== */
.playstore-badge {
  width: 300px;
  height: auto;
  cursor: pointer;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  opacity: 0.6;
  font-size: 14px;
  background-color: rgb(82, 104, 104);
  padding: 20px 0;
  
}

.Socials img {
  width: 30px;
  height: auto;
  margin: 0 5px;
}

.Privacy-Policy {
  font-size: 15px;
  color: white;
  text-decoration: none;
  transition: color 0.2s ease, font-size 0.2s ease;
}

.Privacy-Policy:hover {
  font-size: 16px;
  color: black;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav a {
    font-size: 16px;
    margin: 8px 0;
    display: block; /* stacked vertically */
  }
  nav {
    padding-bottom: 50px;
  }
  .top-row {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
  }

  .top-row iframe {
    width: 100%;
  }

  .side-gif {
    width: 200px;
  }

  .bottom-row {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .Phone {
    width: 240px;
    background-size: 240px auto;
  }

  .game-screen {
    width: 90%;
  }

  .content {
    width: 230px;
  }

  .Description {
    text-align: center;
    max-width: 90%;
  }

  .Description img {
    width: 220px;
  }

  .Description h1 {
    font-size: 14px;
    line-height: 1.6;
  }

  .playstore-badge {
    width: 220px;
  }

  .game-screen-wrapper button {
    width: 35px;
    height: 35px;
  }

  footer {
    font-size: 12px;
  }
  .End img {
    width: 150px;
    height: auto;
  }

  .Privacy-Policy {
    font-size: 13px;
  }

  .Privacy-Policy:hover {
    font-size: 14px;
  }

  .Socials img {
    width: 25px;
  }
}

@media (max-width: 480px) {
  .Phone {
    width: 200px;
    background-size: 200px auto;
  }

  .content {
    width: 180px;
  }

  .Description img {
    width: 180px;
  }

  .Description h1 {
    font-size: 12px;
  }

  .playstore-badge {
    width: 180px;
  }

  .game-screen-wrapper button {
    width: 50px;
    height: 30px;
  }
}
